package com.neu;


import java.sql.Array;
import java.util.Arrays;
import java.util.Scanner;

public class work {
    public static void main(String[] args) {
        System.out.println("请输入需要的数字数量");
        Scanner scan = new Scanner(System.in);
        int y = scan.nextInt();
        int[] nums = suiji(y);
        System.out.println(Arrays.toString(nums));
    }
    public static int[] suiji(int sou){

        int[] m = new int[sou];
        for (int i = 0; i <sou ; i++) {
            int x =(int)(Math.random()*10);
             m[i] = x;
        }

        return m;
    }
}
